<!DOCTYPE html>
<html lang="en">

<head>
    <meta name="baidu-site-verification" content="E4dVR6iQLM" />
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="keywords" content="水质检测系统,lims,水质检测,饮用水水质检测,水质检测41项">
    <meta name="description" content="免费开放的水质检测专用平台，可以简化水质检测实验室的工作量，减少手误，减少流程，多一点时间发呆">
    <script src="js/jquery3.3.1.min.js"></script>
    <script src="js/vue.min.js"></script>
    <!-- <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script> -->
    <link rel="stylesheet" href="css/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/css/animation.min.css">
    <link rel="stylesheet" href="css/css/font-awesome.min.css">
    <script src="js/bootstarp.js"></script>
    <script src="js/highcharts.js"></script>
    <script src="js/highcharts_zh.js"></script>
    <script src="js/browser-polyfill.js"></script>
    <title>水质检验回归分析系统</title>
</head>

<body>
    <div class="ie-tips">Sorry. 如果您使用的是360浏览器，请切换为极速模式，如果是IE浏览器无法正常使用，请您使用
        <a href="http://down.360safe.com/se/360se10.0.1508.0.exe" target="_blank">360浏览器</a>或者
        <a href="https://chrome.en.softonic.com/" target="_blank">Chrome谷歌浏览器</a>
        <a class="js-tip-close">关闭</a>
    </div>

    <style>
        /*ie浏览器版本提示信息*/

        .ie-tips {
            display: none;
            position: relative;
            height: 30px;
            line-height: 30px;
            background: #f9d272;
            color: #f00;
            font-size: 14px;
            text-align: center;
        }

        .ie-tips b {
            font-weight: bold;
        }

        .ie-tips .js-tip-close {
            position: absolute;
            top: 0;
            right: 20px;
            cursor: pointer;
        }

        .threed {
            text-shadow: 0px 1px 0px #999, 1px 2px 1px #888, 2px 3px 2px #777, 3px 4px 3px #666, 4px 5px 4px #555, 5px 6px 5px #444, 6px 7px 6px #333, 7px 8px 7px #222, 8px 9px 8px #111
        }
    </style>
    <div id="root">
        <div class="container">
            <div class="jumbotron row">
                <div onclick="focus_move()" class="col-xs-9 col-lg-10 col-md-10 col-sm-10">
                    <h2 data-toggle="modal" data-target="#login" v-text="company"></h2>
                    <h1 style="color:gainsboro" class="threed">水质检验回归分析系统</h1>
                    <i class="fa fa-calendar" v-text="dateFormat(new Date())"></i>
                </div>
                <div class="col-xs-3 col-lg-2 col-md-2 col-sm-2">
                    <i class="fa fa-qq">
                        <a target="_blank" href="https://shang.qq.com/wpa/qunwpa?idkey=0c7a84b3bf0ac2a3564a707e9841a6704564dc55302794760b96bca8bd42480b">
                            <img src="https://pub.idqqimg.com/wpa/images/group.png" alt="水质检测系统" title="水质检测系统">
                        </a></i>
                    <a class="btn btn-warning btn-lg" data-toggle="modal" data-target=".bs-example-modal-lg">
                        <i class="fa fa-play">使用演示</i>
                    </a>
                    <a class="btn btn-warning btn-lg" href="https://jingyan.baidu.com/article/851fbc377b58ea3e1f15abe5.html"
                        target="_blank">
                        <i class="fa fa-book">使用说明</i>
                    </a>
                    <!-- Large modal -->
                    <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
                        <div class="modal-dialog modal-lg" role="document">
                            <div class="modal-content">
                                <video src="img/tutorial.Ogg" height="500" autoplay controls preload="metadata"></video>
                            </div>
                        </div>
                    </div>
                    <a class="btn btn-warning btn-lg" data-toggle="modal" data-target="#login" v-if="login_f">
                        <i class="fa fa-sign-in">机构名称</i>
                    </a>
                    <a class="btn btn-success btn-lg" data-toggle="modal" data-target="#environment" v-else>
                        <i class="fa fa-thermometer"> 环境记录</i>
                    </a>
                    <a class="btn btn-lg btn-info" href="sample.html">
                        <i class="fa fa-print">检验报告</i>
                    </a>
                    <div class="modal fade" id="environment" tabindex="-1" role="dialog" aria-labelledby="myEnv"
                        aria-hidden="true">
                        <div class="modal-dialog">
                            <div class='modal-content'>
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                    <h4 class="modal-title" id="myEnv">实验室环境</h4>
                                </div>
                                <div class="modal-body">
                                    <div class="input-group">
                                        <label class="input-group-addon">温度(℃)</label>
                                        <input class="form-control" type="number" v-model.number="T">
                                        <label class="input-group-addon">℃</label>
                                    </div>
                                    <div class="input-group">
                                        <label class="input-group-addon">湿度(%)</label>
                                        <input class="form-control" type="number" v-model.number="H">
                                        <label class="input-group-addon">%</label>
                                    </div>

                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-primary" tabindex="0" @click="login_env()"
                                        data-dismiss="modal">确认</button>
                                </div>
                            </div>
                            <!-- /.modal-content -->
                        </div>
                        <!-- /.modal -->
                    </div>
                    <div class="modal fade" id="login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                        aria-hidden="true">
                        <div class="modal-dialog">
                            <div class='modal-content'>
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                    <h4 class="modal-title" id="myModalLabel">本地存储</h4>
                                </div>
                                <div class="modal-body form-group">
                                    <label for="" class="form-label">单位名称
                                        <input class="form-control" type="text" v-model="company">
                                    </label>
                                    <label class="form-label">机构代号
                                        <input type="text" class="form-control" v-model="numbering">
                                    </label>
                                </div>
                                <div class="modal-footer">
                                    <button style="float:left" type="button" class="btn btn-danger" data-toggle="modal"
                                        data-target="#delcfmModel">清除所有数据</button>
                                    <button type="button" class="btn btn-primary save_yes" @click="login_s"
                                        data-dismiss="modal">保存</button>
                                </div>
                            </div>
                            <!-- /.modal-content -->
                        </div>
                        <!-- /.modal -->
                    </div>
                    <!-- 信息删除确认 -->
                    <div class="modal fade" id="delcfmModel">
                        <div class="modal-dialog">
                            <div class="modal-content message_align">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true">×</span>
                                    </button>
                                    <h4 class="modal-title">提示信息</h4>
                                </div>
                                <div class="modal-body">
                                    <p>删除后您的所有记录数据都会丢失，无法恢复，您确认要删除吗？</p>
                                </div>
                                <div class="modal-footer">
                                    <input type="hidden" id="url" />
                                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                    <a class="btn btn-success" @click="deleteAllData" data-dismiss="modal">确定</a>
                                </div>
                            </div>
                            <!-- /.modal-content -->
                        </div>
                        <!-- /.modal-dialog -->
                    </div>
                    <!-- /.modal -->
                </div>
            </div>
            <div class="row">
                <div class="col-lg-10 col-md-10 col-sm-9 col-xs-6 text-left">
                    <nav class="navbar navbar-default" role="navigation">
                        <div class="container-fluid">
                            <div class="navbar-header">
                                <button class="navbar-toggle" data-toggle="collapse" data-target="#object_nav">
                                    <span class="sr-only">显示</span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                </button>
                                <i class="navbar-brand">
                                    <!-- 项目<input v-model="search" /> -->
                                </i>
                            </div>
                            <div class="collapse navbar-collapse" id="object_nav">
                                <ul class="nav navbar-nav" style="float:right">
                                    <li class="btn btn-info btn-lg" @click="s6=false;s1=true;s2=false;s3=false;s4=false;s5=false;add_edit=false">感官性状和一般化学指标</li>
                                    <li class="btn btn-warning btn-lg" @click="s6=false;s1=false;s2=false;s4=false; s5=false;s3=true;add_edit=false">消毒剂指标</li>
                                    <li class="btn btn-danger btn-lg" @click="s6=false;s1=false;s2=true;s3=false;s4=false;s5=false;add_edit=false">毒理指标</li>
                                    <li class="btn btn-success btn-lg" @click="s6=false;s1=false;s2=false;s3=false;s5=false;s4=true;add_edit=false">微生物指标</li>
                                    <li class="btn btn-danger btn-lg" @click="s6=false;s1=false;s2=false;s3=false;s4=false;s5=true;add_edit=false">放射性指标</li>
                                    <li class="btn btn-success btn-lg" @click="s6=true;s1=false;s2=false;s3=false;s4=false;s5=false;add_edit=false">新增的项目</li>
                                </ul>
                            </div>
                        </div>
                    </nav>
                </div>
                <div class="col-lg-2 col-md-2 col-sm-3 col-xs-6 text-right">
                    <nav class="navbar navbar-default" role="navigation">
                        <div class="container-fluid">
                            <div class="navbar-head">
                                <button class="navbar-toggle" data-toggle="collapse" data-target="#project_items">
                                    <span class="sr-only">显示</span><span class="icon-bar"></span>
                                    <span class="icon-bar"></span><span class="icon-bar"></span>
                                </button>
                            </div>
                            <div class="navbar-collapse collapse" id="project_items">
                                <ul class="nav navbar-nav">
                                    <li class="btn" title="修改项目参数" class="dropdown" data-toggle="modal" data-target="#opt4">
                                        修改
                                    </li>
                                    <li class="dropdown">
                                    <li title="增加一个新项目" class="dropdown-toggle btn" data-toggle="dropdown">
                                        增加
                                    </li>
                                    <ul class="dropdown-menu">
                                        <li>

                                            <a title="新增项目或修改项目参数" class="btn btn-default" data-toggle="modal"
                                                data-target="#opt1">
                                                <i class="fa fa-plus">新增比色法测定项目</i>
                                            </a>
                                        </li>
                                        <li>
                                            <a title="新增项目或修改项目参数" class="btn btn-default" data-toggle="modal"
                                                data-target="#opt2">
                                                <i class="fa fa-plus">新增滴定法测定项目</i>
                                            </a>
                                        </li>
                                        <li>
                                            <a title="新增项目" class="btn btn-default" data-toggle="modal" data-target="#opt3">
                                                <i class="fa fa-plus">新增其他项目</i>
                                            </a>
                                        </li>
                                    </ul>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
            <br>
            <br>
            <form>
                <div class="modal fade" id="opt3" tabindex="-1" role="dialog" aria-labelledby="myOpt3" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class='modal-content'>
                            <h3 class="text-info text-center">新增其他类型项目</h3>
                            <ol class="nav">
                                <li class="animated zoomIn">
                                    <form class="contractForm">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                        </div>
                                        <div class="modal-body">
                                            <div class="input-group">
                                                <label class="input-group-addon">项目名称：</label>
                                                <input type="text" class="form-control" v-model="new_opt3.name" title="必须全部为汉字"
                                                    pattern="[\u4e00-\u9fa5]+">
                                                <label class="input-group-addon">单&#12288;&#12288;位：&#12288;</label>
                                                <input type="text" class="form-control" v-model="new_opt3.unit">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">检验依据：</label>
                                                <input type="text" class="form-control" v-model="new_opt3.GB">
                                                <label class="input-group-addon">检验方法：&#12288;</label>
                                                <input type="text" class="form-control" v-model="new_opt3.method">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">检测仪器：</label>
                                                <input type="text" class="form-control" v-model="new_opt3.instrument_model">
                                                <label class="input-group-addon">最小检出限：</label>
                                                <input type="text" class="form-control" v-model="new_opt3.limit">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">最高限值：</label>
                                                <input type="text" class="form-control" placeholder="参考范围的高限" v-model="new_opt3.range_max">
                                                <label class="input-group-addon">最低限值：&#12288;</label>
                                                <input type="text" placeholder="如果没有，请忽略" class="form-control" tabindex="-1"
                                                    v-model="new_opt3.range_min">
                                            </div>
                                        </div>
                                        <div class="modal-footer">
                                            <button class="btn btn-info" data-dismiss="modal">关闭</button>
                                            <button type="submit" title="项目名称必须为汉字，请核对后重新输入！" class="btn btn-primary"
                                                @click="add_new_opt(new_opt3)">确认增加</button>
                                        </div>
                                    </form>
                                </li>
                            </ol>
                        </div>
                    </div>
                </div>
                <div class="modal fade" id="opt4" tabindex="-1" role="dialog" aria-labelledby="myOpt4" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class='modal-content'>
                            <h3 class="text-info text-center">修改项目参数</h3>
                            <ol class="nav">
                                <li class="animated zoomIn">
                                    <form name='contractForm'>
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                        </div>
                                        <div class="modal-body">
                                            <div class="input-group">
                                                <label class="input-group-addon">项目名称：</label>
                                                <select tabindex="-1" class="form-control" v-model="slt">
                                                    <option style="font-size: 80%" disabled>---请选择---</option>
                                                    <option :value="item" v-for="(item,index) in names" v-text="item.name"></option>
                                                    <option :value="item" v-for="(item,index) in new_names" v-text="item.name"></option>
                                                </select>
                                                <label class="input-group-addon" v-if="slt.id>43">
                                                    <button class="btn btn-danger form-control" @click="del_opt(slt)"
                                                        data-dismiss="modal">
                                                        删除项目
                                                    </button>
                                                </label>
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">单&#12288;&#12288;位：</label>
                                                <input type="text" class="form-control" v-model="slt.unit">
                                                <label class="input-group-addon">最小检出限：</label>
                                                <input type="text" class="form-control" v-model="slt.limit">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">检验依据：</label>
                                                <input type="text" class="form-control" v-model="slt.GB">
                                                <label class="input-group-addon">检验方法：&#12288;</label>
                                                <input type="text" class="form-control" v-model="slt.method">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">最高限值：</label>
                                                <input type="text" class="form-control" placeholder="参考范围的高限" v-model="slt.range_max">
                                                <label class="input-group-addon">最低限值：&#12288;</label>
                                                <input placeholder="如果没有，请忽略" type="text" class="form-control" tabindex="-1"
                                                    v-model="slt.range_min">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">检测仪器：</label>
                                                <input type="text" class="form-control" v-model="slt.instrument_model">
                                            </div>
                                            <div class="input-group">
                                                <label v-if="slt.category==2" class="input-group-addon">计算公式：c=
                                                    <input placeholder="常量" v-model="slt.coefficient">&times;(<span
                                                        v-if="slt.name=='溶解性总固体'">m<sub>总质量</sub>-m<sub>蒸发皿</sub></span><span
                                                        v-else>V<sub>样品</sub>-V<sub>空白</sub></span>)/V
                                                </label>
                                            </div>
                                        </div>
                                        <div class="modal-footer">
                                            <button class="btn btn-info" data-dismiss="modal">关闭</button>
                                            <button type="submit" title="项目名称必须为汉字，请核对后重新输入！" data-dismiss="modal"
                                                class="btn btn-primary" @click="edit_opt(slt)">提交更改</button>
                                        </div>
                                    </form>
                                </li>
                            </ol>
                        </div>
                    </div>
                    <!-- /.modal-content -->
                </div>
                <!-- /.modal -->
                <div class="modal fade" id="opt2" tabindex="-1" role="dialog" aria-labelledby="myOpt2" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class='modal-content'>
                            <h3 class="text-info text-center">新增滴定法测定项目</h3>
                            <ol class="nav">
                                <li class="animated zoomIn">
                                    <form name="contractForm">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                        </div>
                                        <div class="modal-body">
                                            <div class="input-group">
                                                <label class="input-group-addon">项目名称：</label>
                                                <input type="text" class="form-control" v-model="new_opt2.name" title="必须全部为汉字"
                                                    pattern="[\u4e00-\u9fa5]+">
                                                <label class="input-group-addon">单&#12288;&#12288;位：&#12288;</label>
                                                <input type="text" class="form-control" v-model="new_opt2.unit">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">检验依据：</label>
                                                <input type="text" class="form-control" v-model="new_opt2.GB">
                                                <label class="input-group-addon">检验方法：&#12288;</label>
                                                <input type="text" class="form-control" v-model="new_opt2.method">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">检测仪器：</label>
                                                <input type="text" class="form-control" v-model="new_opt2.instrument_model">
                                            </div>
                                            <div class="input-group"><label class="input-group-addon">计算公式：&rho;=
                                                    <input type="number" placeholder="常量" v-model="new_opt2.coefficient">&times;(V<sub>样品</sub>&minus;V<sub>空白</sub>)/V</label>
                                                <label class="input-group-addon">最小检出限:</label>
                                                <input type="text" class="form-control" v-model="new_opt2.limit">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">最高限值：</label>
                                                <input type="text" class="form-control" placeholder="参考范围的高限" v-model="new_opt2.range_max">
                                                <label class="input-group-addon">最低限值：&#12288;</label>
                                                <input type="text" placeholder="如果没有，请忽略" tabindex="-1" class="form-control"
                                                    v-model="new_opt2.range_min">
                                            </div>
                                        </div>
                                        <div class="modal-footer">
                                            <button class="btn btn-info" data-dismiss="modal">关闭</button>
                                            <button type="submit" title="项目名称必须为汉字，请核对后重新输入！" class="btn btn-primary"
                                                @click="add_new_opt(new_opt2)">确认增加</button>
                                        </div>
                                    </form>
                                </li>
                            </ol>
                        </div>
                    </div>
                    <!-- /.modal-content -->
                </div>
                <!-- /.modal -->
                <div class="modal fade" id="opt1" tabindex="-1" role="dialog" aria-labelledby="myOpt1" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class='modal-content'>
                            <h3 class="text-info text-center">新增比色法测定项目</h3>
                            <ol class="nav">
                                <li class="animated zoomIn">
                                    <form action="" name="contractForm">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                        </div>
                                        <div class="modal-body">
                                            <div class="input-group">
                                                <label class="input-group-addon">项目名称：</label>
                                                <input type="text" class="form-control" v-model="new_opt1.name" title="必须全部为汉字"
                                                    pattern="[\u4e00-\u9fa5]+">
                                                <label class="input-group-addon">单&#12288;&#12288;位：&#12288;</label>
                                                <input type="text" class="form-control" v-model="new_opt1.unit">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">检验依据：</label>
                                                <input type="text" class="form-control" v-model="new_opt1.GB">
                                                <label class="input-group-addon">检验方法：&#12288;</label>
                                                <input type="text" class="form-control" v-model="new_opt1.method">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">检测仪器：</label>
                                                <input type="text" class="form-control" v-model="new_opt1.instrument_model">
                                                <label class="input-group-addon">最小检出限：</label>
                                                <input type="text" class="form-control" v-model="new_opt1.limit">
                                            </div>
                                            <div class="input-group">
                                                <label class="input-group-addon">最高限值：</label>
                                                <input type="text" class="form-control" placeholder="参考范围的高限" v-model="new_opt1.range_max">
                                                <label class="input-group-addon">最低限值：&#12288;</label>
                                                <input type="text" placeholder="如果没有，请忽略" class="form-control" tabindex="-1"
                                                    v-model="new_opt1.range_min">
                                            </div>
                                        </div>
                                        <div class="modal-footer">
                                            <button class="btn btn-info" data-dismiss="modal">关闭</button>
                                            <button type="submit" title="项目名称必须为汉字，请核对后重新输入！" class="btn btn-primary"
                                                @click="add_new_opt(new_opt1)">确认增加</button>
                                        </div>
                                    </form>
                                </li>
                            </ol>
                        </div>
                    </div>
                    <!-- /.modal-content -->
                </div>
                <!-- /.modal -->
            </form>
            <!-- <ul>
                <li v-for="(item, index) in items" :key="index">
                    <input v-model="item"><label>{{item.name}}</label>
                </li>
            </ul> -->
            <div>
                <div class="animated fadeIn form-group" v-if="s6">
                    <span v-for="(item,index) in new_names" class="input-group-addon radio-inline">
                        <input class="radio" type="radio" v-if="item.category==1" v-model="selected1" :value="item">
                        <input class="radio" type="radio" v-if="item.category==2" v-model="selected2" :value="item">
                        <input class="radio" type="radio" v-if="item.category==3" v-model="selected3" :value="item">
                        <span v-text="item.name"></span>
                    </span>
                </div>
                <div class="row animated fadeInLeft form-group" v-if="s1">
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[6]">色度
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[7]">浑浊度
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[0]">臭和味
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[1]">肉眼可见物
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[5]">酸碱度
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[25]">铝
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[35]">铁
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[34]">锰
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[33]">铜
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[36]">锌
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected2" :value="names[17]">总硬度
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected2" :value="names[8]">溶解性总固体
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[26]">挥发酚类
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[28]">阴离子合成洗涤剂
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected2" :value="names[18]">耗氧量
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[37]">硫酸盐
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected2" :value="names[16]">氯化物
                        </span></span>
                </div>
                <div class="row animated fadeInUp" v-if="s2">
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[38]">砷
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[29]">硒
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[27]">汞
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[30]">镉
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[32]">铬(六价)
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[31]">铅
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[23]">氟化物
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[22]">氰化物
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[24]">硝酸盐氮
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[9]">四氯化碳
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[10]">三氯甲烷
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected2" :value="names[19]">亚氯酸盐
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected2" :value="names[20]">氯酸盐
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[11]">溴酸盐
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[39]">甲醛
                        </span></span>
                </div>
                <div class="row animated fadeInDown" v-if="s3">
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[12]">余氯
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[13]">总氯
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[15]">臭氧
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[14]">二氧化氯
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected1" :value="names[21]">氨氮
                        </span></span>
                </div>
                <div class="row animated fadeInUp" v-if="s4">
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[2]">总大肠菌群
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[4]">耐热大肠菌群
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[3]">大肠埃希氏菌
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[40]">菌落总数
                        </span></span>
                </div>
                <div class="row animated fadeInRight" v-if="s5">
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[41]">总α放射性
                        </span></span>
                    <span class=" col-lg-3 col-md-3 col-sm-4 col-xs-6">
                        <span class="input-group-addon radio-inline">
                            <input class="radio" type="radio" v-model="selected3" :value="names[42]">总β放射性
                        </span></span>
                </div>
            </div>
            <br>
            <br>
            <div class="row">
                <div class="col-lg-6 animated fadeIn" v-if="show1">
                    <table class="animated fadeInUp table table-hover table-bordered text-center table-striped" :id="selected1.id">
                        <thead>
                            <tr>
                                <th class="text-center">序号</th>
                                <th class="text-center">标准加入量(ml)</th>
                                <!-- <th class="text-center">标准加入量(μg)</th> -->
                                <th class="text-center">吸光度</th>
                                <th class="btn btn-info" @click="add_item(selected1.id)">
                                    <i title="增加序列" class="fa fa-plus">增加</i>
                                </th>
                                <th class="btn btn-info" @click="get_list()">
                                    <i title="保存数据" class="fa fa-save">更新</i>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="(item, index) in selected1.standard_series" :key="index">
                                <td v-text="index+1"></td>
                                <td contenteditable="true" v-text="item[0]"></td>
                                <!-- <td contenteditable="true" v-text="selected1.zl[index]"></td> -->
                                <td contenteditable="true" v-text="item[1]"></td>
                                <td colspan="2" @click="del(index)" title="删除" class="btn text-danger text-center">
                                    <i class="fa fa-trash"></i>
                                </td>
                            </tr>
                        </tbody>
                        <caption>
                            <div class="controls controls-row">
                                <span class="span4">
                                    <h3>
                                        水中<span v-text="selected1.name"></span>的标准系列
                                    </h3>
                                </span>
                                <label class="span4">标准使用液浓度：</label>
                                <input class="span2 controls-input" type="number" v-model="selected1.QC_c">
                                <span class="span2">
                                    μg/L
                                </span>
                            </div>
                        </caption>
                    </table>
                </div>
                <div class="col-lg-6" v-show="show1">
                    <div data-highcharts-chart="0" id="line" style="box-shadow:5px 5px 4px"></div>
                </div>
            </div>
            <div class="animated fadeInDown" v-if="show1">

                <a class="btn text-danger" @click="printContent('print')">
                    <i class="fa fa-print"></i>打印记录</a>
                <div id="print">
                    <div @click="date_y()" class="text-center" colspan="5">
                        <h1 v-text="company"></h1>
                        <h3 title="点击这里可以查看每个样品的检测日期">
                            <i>水样中<span v-text="selected1.name"></span>检验记录</i>
                        </h3>
                    </div>
                    <table class="table table-bordered table-striped table-hover">
                        <tr>
                            <th class="text-center">检测方法：</th>
                            <td colspan="3" contenteditable="true" v-text="selected1.method"></td>
                            <th class="text-center">样品数量：</th>
                            <td colspan="3" contenteditable="true">3升</td>
                        </tr>
                        <tr>
                            <th class="text-center">收样日期：</th>
                            <td colspan="3" contenteditable="true" v-text="recived_date"></td>
                            <th class="text-center">检验日期：</th>
                            <td colspan="3" contenteditable="true" v-text="test_date"></td>
                        </tr>
                        <tr>
                            <th class="text-center">样品性状：</th>
                            <td colspan="3" contenteditable="true">液态</td>
                            <th class="text-center">检测环境：</th>
                            <td contenteditable="true">
                                温度
                                <span v-text="T">
                                </span> ℃
                            </td>
                            <td contenteditable="true">
                                湿度
                                <span v-text="H">
                                </span>% RH
                            </td>
                        </tr>
                        <tr>
                            <th class="text-center">检测仪器：</th>
                            <td colspan="3" contenteditable="true" v-text="selected1.instrument_model">
                            </td>
                            <th class="text-center">检验依据：</th>
                            <td contenteditable="true" colspan="3" v-text="selected1.GB">
                            </td>
                        </tr>
                        <th class="text-center">标准加样量(ml)</th>
                        <td v-for="(item,index) in selected1.standard_series" :key="index" v-text="item[0]"></td>
                        </tr>

                        <tr>
                            <th class="text-center">标准吸光度</th>
                            <td v-for="(item,index) in selected1.standard_series" :key="index" v-text="item[1]"></td>
                        </tr>
                        <tr>
                            <th class="text-center">回归公式：</th>
                            <td colspan="3">
                                <span v-text="selected1.formula"></span>&nbsp;&nbsp;&nbsp;&nbsp;r=<span v-text="selected1.r"></span>
                            </td>
                            <th class="text-center">结果计算：</th>
                            <td colspan="3" v-html="selected1.calculation"></td>
                        </tr>
                    </table>
                    <table @click="mystorages(selected1)" class="table table-bordered table-striped table-hover" id="record">
                        <thead>
                            <tr>
                                <th class="text-center">样品编号</th>
                                <th class="text-center">加样量(ml)</th>
                                <th class="text-center">吸光度</th>
                                <th class="text-center">实测质量(μg)</th>
                                <th class="text-center">样品浓度(mg/L)</th>
                                <th class="text-center">报告结果(mg/L)</th>
                                <th v-show="date_show" class="text-center">计量单位</th>
                                <th v-show="date_show" class="text-center">参考范围(mg/L)</th>
                                <th v-show="date_show" class="text-center">结果评价</th>
                                <th v-show="date_show" class="text-center">记录日期</th>
                            </tr>
                        </thead>
                        <tbody class="text-center">
                            <tr v-for="(item, index) in selected1.st" :key="index">
                                <td>
                                    <i v-text="numbering+(new Date()).getFullYear()"></i>水第
                                    <span v-text="f_n(item.id, 3)">
                                    </span>号</td>
                                <td v-text="item.v"></td>
                                <td v-text="item.a"></td>
                                <td v-text="item.m"></td>
                                <td v-text="item.c"></td>
                                <td v-if="item.c<selected1.limit" v-text="'<'+selected1.limit"></td>
                                <td v-else v-text="item.c"></td>
                                <td v-show="date_show" v-text="item.unit"></td>
                                <td v-show="date_show" v-text="item.range"></td>
                                <td v-show="date_show" v-text="item.assessment"></td>
                                <td v-show="date_show" v-text="item.date"></td>
                            </tr>
                        </tbody>
                    </table>
                    <br>
                    <br>
                    <div class="row text-center">
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">检验者：</div>
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">审核者：</div>
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">日期：</div>
                    </div>
                </div>
                <hr>
                <ul class="breadcrumb">
                    <li title="跳过质控，对检验结果会没有自信，长此以往，将会开始怀疑人生，怀疑一切。">
                        <a class="btn btn-default" @click="select_method3()">跳过质控记录</a>
                    </li>
                    <li title="用于x-s质控图绘制，适用于自配质控样品或未定值质控样">
                        <a class="btn btn-default" @click="select_method1(selected1)">x-s质控图</a>
                    </li>
                    <li title="适用于市售的定值标准质控物质，操作简单">
                        <a class="btn btn-default" @click="select_method2(selected1)">标准物值质控</a>
                    </li>
                </ul>

                <div v-if="QC_xs">
                    <fieldset class="animated pulse">
                        <legend>
                            <span v-text="selected1.name"></span>x-s质控图数据录入
                        </legend>
                        <table class="table table-hover table-bordered table-striped">
                            <tr>
                                <th class="text-center">序号</th>
                                <th class="text-center">编号</th>
                                <th class="text-center">加样体积(ml)</th>
                                <th class="text-center">吸光度</th>
                                <th class="text-center">操作</th>
                            </tr>
                            <tr class="text-center">
                                <td>
                                    <input type="text" class="form-control" type="number" v-model="selected1.store_i.id">
                                </td>
                                <td>
                                    <input type="text" class="form-control" type="text" v-model="selected1.store_i.q_info.q_num">
                                </td>
                                <td>
                                    <select class="form-control" v-model="selected1.result.v">
                                        <option v-bind:value="opt" v-for="opt of vol_select" v-text="opt"></option>
                                    </select>
                                </td>
                                <td>
                                    <input class="form-control animated fadeIn" type="number" @keyup.enter="qc_xs_work(selected1)"
                                        placeholder="回车确认" v-model="selected1.store_i.a">
                                </td>
                                <td class="btn btn-warning" @click="qc_xs_work(selected1)">
                                    确认
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </div>
                <div class="row" v-else-if="QC">
                    <div class="col-lg-5">
                        <fieldset>
                            <legend>
                                <span v-text="selected1.name"></span>质控品信息
                            </legend>
                            <div class="input-group">
                                <span class="input-group-addon">编号</span>
                                <input class="form-control" type="text" v-model="selected1.store_i.q_info.q_num">
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon">批号</span>
                                <input class="form-control" type="text" v-model="selected1.store_i.q_info.q_date">
                                <span class="input-group-addon">有效期</span>
                                <input class="form-control" type="text" v-model="selected1.store_i.q_info.valid_date=2">
                                <span class="input-group-addon">年</span>
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon">定值</span>
                                <input class="form-control" type="number" v-model="selected1.store_i.q_info.q_val">
                                <span class="input-group-addon">&plusmn;</span>
                                <input class="form-control" type="number" v-model="selected1.store_i.q_info.q_limit">
                                <span class="input-group-addon">mg/L</span>
                            </div>
                        </fieldset>
                    </div>
                    <div v-if="qc_input" class="col-lg-7">
                        <fieldset class="animated pulse">
                            <legend>
                                <span v-text="selected1.name"></span>质控计算
                            </legend>
                            <table class="table table-hover table-bordered table-striped">
                                <tr>
                                    <th class="text-center">序号</th>
                                    <th class="text-center">加样体积(ml)</th>
                                    <th class="text-center">吸光度</th>
                                    <th class="text-center">操作</th>
                                </tr>
                                <tr class="text-center">
                                    <td>
                                        <input class="form-control" type="number" v-model="selected1.store_i.id">
                                    </td>
                                    <td>
                                        <select v-model="selected1.result.v">
                                            <option class="form-control" v-bind:value="opt" v-for="(opt,index) of vol_select" v-text="opt"
                                                :key="index"></option>
                                        </select>
                                    </td>
                                    <td>
                                        <input class="form-control animated fadeIn" type="number" tabindex="0"
                                            placeholder="回车确认" @keyup.enter="qc_work(selected1)"
                                            v-model="selected1.store_i.a">
                                    </td>
                                    <td class="btn btn-warning" @click="qc_work(selected1)">
                                        确认
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </div>
                </div>
                <div class="row" v-else>
                    <legend>样品中
                        <span v-text="selected1.name"></span> 浓度计算
                    </legend>
                    <table class="table table-hover table-bordered table-striped">
                        <tr>
                            <th class="text-center">样品编号</th>
                            <th class="text-center">加样体积(ml)</th>
                            <th class="text-center">吸光度</th>
                            <th class="text-center">操作</th>
                        </tr>
                        <tr class="text-center">
                            <td>
                                <i class="input-group">
                                    <span class="input-group-addon" v-text="numbering+(new Date()).getFullYear()"></span><span
                                        class="input-group-addon">水第</span>
                                    <input type="number" class="form-control" v-model="selected1.start">
                                    <span class="input-group-addon">号</span>
                                </i>
                            </td>
                            <td>
                                <select class="form-control" v-model="selected1.result.v">
                                    <option v-bind:value="opt" v-for="opt of vol_select" v-text="opt"></option>
                                </select>
                            </td>
                            <td>
                                <input class="form-control animated fadeIn" type="number" tabindex="0" @keyup.enter="work(selected1)"
                                    placeholder="回车确认" v-model="selected1.result.a">
                            </td>
                            <td class="btn btn-warning" @click="work(selected1)">
                                确认
                            </td>
                        </tr>
                    </table>
                    </fieldset>
                </div>
                <fieldset v-if="qc_input">
                    <legend>
                        <a v-if="QC_xs" onclick="QC_chart(app.selected1,'line1')" class="btn btn-default">制作<span v-text="selected1.name"></span>x-s质控图</a>
                    </legend>
                    <table class="table table-bordered table-striped">
                        <thead>
                            <tr>
                                <th>序号</th>
                                <th>编号</th>
                                <th v-if="QC">定值</th>
                                <th v-if="QC">不确定度</th>
                                <th>结果</th>
                                <th v-if="QC">判断</th>
                                <th>日期</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody v-if="QC">
                            <tr v-for="(item, index) in selected1.QC_store" :key="index" v-if="item.q_info.q_num==selected1.store_i.q_info.q_num">
                                <td v-text="item.id"></td>
                                <td v-text="item.q_info.q_num"></td>
                                <td v-text="item.q_info.q_val"></td>
                                <td v-text="item.q_info.q_limit"></td>
                                <td v-text="item.result"></td>
                                <!-- <td v-text="item.q_judge" v-if="item.q_judge=='在控'" class="text-success"></td>
                                <td v-text="item.q_judge" v-else class="text-danger"></td> -->
                                <td v-text="item.q_judge" :class="(item.q_judge=='在控')?'text-success':'text-danger'"></td>
                                <td v-text="item.date"></td>
                                <td @click="del_qc(selected1,index)">
                                    <i class="fa fa-brush">删除</i>
                                </td>
                            </tr>
                        </tbody>
                        <tbody v-else>
                            <tr v-for="(item, index) in selected1.QC_xs_store" :key="index" v-if="item.q_info.q_num==selected1.store_i.q_info.q_num">
                                <td v-text="item.id"></td>
                                <td v-text="item.q_info.q_num"></td>
                                <td v-text="item.result"></td>
                                <td v-text="item.date"></td>
                                <td @click="del_qc(selected1,index)">
                                    <i class="fa fa-brush">删除</i>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </fieldset>
                <div v-show="QC_xs && show1 && toggleTag">
                    <div data-highcharts-chart="1" id="line1" style="box-shadow:5px 5px 4px"></div>
                </div>
            </div>
            <form class="animated fadeInDown" v-if="show2">
                <a class="btn text-danger" @click="printContent('print2')">
                    <i class="fa fa-print"></i>打印记录
                </a>
                <div id="print2">
                    <div @click="date_y()" class="text-center" colspan="5">
                        <h1 v-text="company"></h1>
                        <h3 title="点击这里可以查看每个样品的检测日期">
                            <i>水样中<span v-text="selected2.name"></span>检验记录</i>
                        </h3>
                    </div>
                    <table class="table table-bordered table-striped table-hover">
                        <tr>
                            <th class="text-center">检测方法：</th>
                            <td colspan="1" contenteditable="true" v-text="selected2.method"></td>
                            <th class="text-center">样品数量：</th>
                            <td colspan="2" contenteditable="true">3升</td>
                        </tr>
                        <tr>
                            <th class="text-center">收样日期：</th>
                            <td contenteditable="true" v-text="test_date"></td>
                            <th class="text-center">检验日期：</th>
                            <td colspan="2" contenteditable="true" v-text="test_date"></td>
                        </tr>
                        <tr>
                            <th class="text-center">样品性状：</th>
                            <td contenteditable="true">液态</td>
                            <th class="text-center">检测环境：</th>
                            <td contenteditable="true">
                                温度：
                                <span v-text="T"></span> ℃
                            </td>
                            <td contenteditable="true">
                                湿度：
                                <span v-text="H"></span>% RH
                            </td>
                        </tr>
                        <tr>
                            <th class="text-center">检测仪器：</th>
                            <td contenteditable="true" v-text="selected2.instrument_model"></td>
                            <th class="text-center">检验依据：</th>
                            <td contenteditable="true" colspan="2" v-text="selected2.GB"></td>
                        </tr>
                        <!-- <tr>
                            <td class="text-center">检验步骤：</td>
                            <td colspan="5">
                                <ol>
                                    <div v-for="(sp,index) in selected2.step">
                                        <li v-text="sp"></li>
                                    </div>
                                </ol>
                            </td>
                        </tr> -->
                        <tr>
                            <th class="text-center">结果计算：</th>
                            <td colspan="5">
                                <math v-html="selected2.calculation"></math>
                            </td>
                        </tr>
                    </table>
                    <table @click="mystorages(selected2)" class="table table-bordered table-striped table-hover" id="record2">
                        <thead>
                            <tr>
                                <th class="text-center">样品编号</th>
                                <th class="text-center">加样量(ml)</th>
                                <th class="text-center" v-if="selected2.name=='溶解性总固体'">m0(g)</th>
                                <th class="text-center" v-else>空白消耗量(ml)</th>
                                <th class="text-center" v-if="selected2.name=='溶解性总固体'">m1(g)</th>
                                <th class="text-center" v-else>标准消耗量(ml)</th>
                                <th class="text-center">测定结果(mg/L)</th>
                                <th class="text-center">报告结果(mg/L)</th>
                                <th v-show="date_show" class="text-center">计量单位</th>
                                <th v-show="date_show" class="text-center">参考范围(mg/L)</th>
                                <th v-show="date_show" class="text-center">结果评价</th>
                                <th v-show="date_show" class="text-center">记录日期</th>
                            </tr>
                        </thead>
                        <tbody class="text-center">
                            <tr v-for="(item, index) in selected2.st" :key="index">
                                <td>
                                    <i v-text="numbering+(new Date()).getFullYear()"></i>水第
                                    <span v-text="f_n(item.id, 3)">
                                    </span>号</td>
                                <td v-text="item.v"></td>
                                <td v-text="item.a0"></td>
                                <td v-text="item.a1"></td>
                                <td v-text="item.c"></td>
                                <td v-if="item.c<selected2.limit" v-text="'<'+selected2.limit"></td>
                                <td v-else v-text="item.c"></td>
                                <td v-show="date_show" v-text="item.unit"></td>
                                <td v-show="date_show" v-text="item.range"></td>
                                <td v-show="date_show" v-text="item.assessment"></td>
                                <td v-show="date_show" v-text="item.date"></td>
                            </tr>
                        </tbody>
                    </table>
                    <br>
                    <br>
                    <div class="row text-center">
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">检验者：</div>
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">审核者：</div>
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">日期：</div>
                    </div>
                </div>
                <hr>


                <ul class="breadcrumb">
                    <li title="跳过质控，对检验结果会没有自信，长此以往，将会开始怀疑人生，怀疑一切。">
                        <a class="btn btn-default" @click="select_method3()">跳过质控记录</a>
                    </li>
                    <li title="用于x-s质控图绘制，适用于自配质控样品或未定值质控样">
                        <a class="btn btn-default" @click="select_method1(selected2)">x-s质控图</a>
                    </li>
                    <li title="适用于市售的定值标准质控物质，操作简单">
                        <a class="btn btn-default" @click="select_method2(selected2)">标准物值质控</a>
                    </li>
                </ul>

                <div class="row" v-if="QC_xs">
                    <div>
                        <fieldset class="animated pulse">
                            <legend>
                                <span v-text="selected2.name"></span>x-s质控图数据录入
                            </legend>
                            <table class="table table-hover table-bordered table-striped">
                                <tr>
                                    <th class="text-center">序号</th>
                                    <th class="text-center">编号</th>
                                    <th class="text-center">加样体积(ml)</th>
                                    <th v-if="selected2.name=='耗氧量'" class="text-center">K值</th>
                                    <th class="text-center" v-text="(selected2.name=='溶解性总固体')?'蒸发皿质量(g)':'空白消耗量(ml)'"></th>
                                    <th class="text-center" v-text="(selected2.name=='溶解性总固体')?'蒸发皿和固体样品总质量(g)':'滴定消耗量(ml)'"></th>
                                    <th class="text-center">操作</th>
                                </tr>
                                <tr class="text-center">
                                    <td>
                                        <input class="form-control" type="number" v-model="selected2.store_i.id">
                                    </td>
                                    <td>
                                        <input class="form-control" type="text" v-model="selected2.store_i.q_info.q_num">
                                    </td>
                                    <td>
                                        <select class="form-control" v-model="selected2.result.v">
                                            <option v-bind:value="opt" v-for="opt of vol_select" v-text="opt"></option>
                                        </select>
                                    </td>
                                    <td v-if="selected2.name=='耗氧量'">
                                        <input class="form-control animated fadeIn" type="number" tabindex="0" v-model="selected2.result.K">
                                    </td>
                                    <td>
                                        <input class="form-control animated fadeIn" type="number" tabindex="0" v-model="selected2.result.a0">
                                    </td>
                                    <td>
                                        <input class="form-control animated fadeIn" type="number" @keyup.enter="qc_xs_work(selected2)"
                                            placeholder="回车确认" v-model="selected2.store_i.a">
                                    </td>
                                    <td class="btn btn-warning" @click="qc_xs_work(selected2)">
                                        确认
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </div>
                </div>
                <div class="row" v-else-if="QC">
                    <div class="col-lg-6">
                        <fieldset>
                            <legend>
                                <span v-text="selected2.name"></span>质控品信息
                            </legend>
                            <div class="input-group">
                                <span class="input-group-addon">编号</span>
                                <input class="form-control" type="text" v-model="selected2.store_i.q_info.q_num">
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon">批号</span>
                                <input class="form-control" type="text" v-model="selected2.store_i.q_info.q_date">
                                <span class="input-group-addon">有效期</span>
                                <input class="form-control" type="text" v-model="selected2.store_i.q_info.valid_date=2">
                                <span class="input-group-addon">年</span>
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon">定值</span>
                                <input class="form-control" type="number" v-model="selected2.store_i.q_info.q_val">
                                <span class="input-group-addon">&plusmn;</span>
                                <input class="form-control" type="number" v-model="selected2.store_i.q_info.q_limit">
                                <span class="input-group-addon">mg/L</span>
                            </div>
                        </fieldset>
                    </div>
                    <div v-if="qc_input" class="col-lg-6">
                        <fieldset class="animated pulse">
                            <legend>
                                <span v-text="selected2.name"></span>质控计算
                            </legend>
                            <table class="table table-hover table-bordered table-striped">
                                <tr>
                                    <th class="text-center">序号</th>
                                    <th class="text-center">编号</th>
                                    <th class="text-center">加样体积(ml)</th>
                                    <th v-if="selected2.name=='耗氧量'" class="text-center">K值</th>
                                    <th class="text-center" v-text="(selected2.name=='溶解性总固体')?'蒸发皿质量(g)':'空白消耗量(ml)'"></th>
                                    <th class="text-center" v-text="(selected2.name=='溶解性总固体')?'蒸发皿和固体样品总质量(g)':'滴定消耗量(ml)'"></th>
                                    <th class="text-center">操作</th>
                                </tr>
                                <tr class="text-center">
                                    <td v-text="selected2.store_i.id"></td>
                                    <td v-text="selected2.store_i.q_info.q_num"></td>
                                    <td>
                                        <select class="form-control" v-model="selected2.result.v">
                                            <option v-bind:value="opt" v-for="opt of vol_select" v-text="opt"></option>
                                        </select>
                                    </td>
                                    <td v-if="selected2.name=='耗氧量'">
                                        <input class="form-control animated fadeIn" type="number" tabindex="0" v-model="selected2.result.K">
                                    </td>
                                    <td>
                                        <input class="form-control animated fadeIn" type="number" tabindex="0" v-model="selected2.result.a0">
                                    </td>
                                    <td>
                                        <input class="form-control animated fadeIn" type="number" tabindex="0"
                                            placeholder="回车确认" @keyup.enter="qc_work(selected2)"
                                            v-model="selected2.store_i.a">
                                    </td>
                                    <td class="btn btn-warning" @click="qc_work(selected2)">
                                        确认
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </div>
                </div>
                <div class="row" v-else>
                    <fieldset class="animated pulse">
                        <legend>样品中
                            <span v-text="selected2.name">
                            </span> 浓度计算</legend>
                        <table class="table table-hover table-bordered table-striped">
                            <tr>
                                <th class="text-center">样品编号</th>
                                <th class="text-center">加样体积(ml)</th>
                                <th v-if="selected2.name=='耗氧量'" class="text-center">K值</th>
                                <th class="text-center" v-if="selected2.name=='溶解性总固体'">蒸发皿质量(g)</th>
                                <th class="text-center" v-else>空白(ml)</th>
                                <th class="text-center" v-if="selected2.name=='溶解性总固体'">蒸发皿和固体样品总质量(g)</th>
                                <th class="text-center" v-else>样品(ml)</th>
                                <th class="text-center">操作</th>
                            </tr>
                            <tr class="text-center">
                                <td>
                                    <i class="input-group">
                                        <span class="input-group-addon" v-text="numbering+(new Date()).getFullYear()"></span><span
                                            class="input-group-addon">水第</span>
                                        <input type="number" class="form-control" v-model="selected2.start">
                                        <span class="input-group-addon">号</span>
                                    </i>
                                </td>
                                <td>
                                    <select class="form-control" v-model="selected2.result.v">
                                        <option v-bind:value="opt" v-for="opt of vol_select" v-text="opt"></option>
                                    </select>
                                </td>
                                <td v-if="selected2.name=='耗氧量'">
                                    <input class="form-control animated fadeIn" type="number" v-model="selected2.result.K">
                                </td>
                                <td>
                                    <input class="form-control animated fadeIn" type="number" step="0.01" v-model="selected2.result.a0">
                                </td>
                                <td>
                                    <input class="form-control animated fadeIn" type="number" tabindex="0" placeholder="回车确认"
                                        @keyup.enter="work(selected2)" v-model.number="selected2.result.a1">
                                </td>
                                <td class="btn btn-warning" @click="work(selected2)">
                                    确认
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </div>
                <table class="table table-bordered table-striped">
                        <a v-if="QC_xs" onclick="QC_chart(app.selected2,'line3')" class="btn btn-default">制作<span v-text="selected2.name"></span>x-s质控图</a>
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>编号</th>
                            <th v-if="QC">定值</th>
                            <th v-if="QC">不确定度</th>
                            <th>结果</th>
                            <th v-if="QC">判断</th>
                            <th>日期</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody v-if="QC">
                        <tr v-for="(item, index) in selected2.QC_store" :key="index" v-if="item.q_info.q_num==selected2.store_i.q_info.q_num">
                            <td v-text="item.id"></td>
                            <td v-text="item.q_info.q_num"></td>
                            <td v-text="item.q_info.q_val"></td>
                            <td v-text="item.q_info.q_limit"></td>
                            <td v-text="item.result"></td>
                            <!-- <td v-text="item.q_judge" v-if="item.q_judge=='在控'" class="text-success"></td>
                            <td v-text="item.q_judge" v-else class="text-danger"></td> -->
                            <td v-text="item.q_judge" :class="(item.q_judge=='在控')?'text-success':'text-danger'"></td>
                            <td v-text="item.date"></td>
                            <td @click="del_qc(selected2,index)" class="btn">
                                <i class="fa fa-brush">删除</i>
                                </th>
                        </tr>
                    </tbody>
                    <tbody v-else>
                        <tr v-for="(item, index) in selected2.QC_xs_store" :key="index" v-if="item.q_info.q_num==selected2.store_i.q_info.q_num">
                            <td v-text="item.id"></td>
                            <td v-text="item.q_info.q_num"></td>
                            <td v-text="item.result"></td>
                            <td v-text="item.date"></td>
                            <td @click="del_qc(selected2,index)" class="btn">
                                <i class="fa fa-brush">删除</i>
                                </th>
                        </tr>
                    </tbody>
                </table>
                <div v-show="show2 && toggleTag" data-highcharts-chart="3" id="line3" style="box-shadow:5px 5px 4px"></div>
            </form>
            <form class="animated fadeInDown" v-if="show3">
                <a class="btn text-danger" @click="printContent('print3')">
                    <i class="fa fa-print"></i>打印记录</a>
                <div id="print3">
                    <div @click="date_y()" class="text-center" colspan="5">
                        <h1 v-text="company"></h1>
                        <h3 title="点击这里可以查看每个样品的检测日期">
                            <i>水样中<span v-text="selected3.name"></span>检验记录</i>
                        </h3>
                    </div>
                    <table class="table table-bordered table-striped table-hover">
                        <tr>
                            <th class="text-center">检测方法：</th>
                            <td colspan="1" contenteditable="true" v-text="selected3.method"></td>
                            <th class="text-center">样品数量：</th>
                            <td colspan="2" contenteditable="true">3升</td>
                        </tr>
                        <tr>
                            <th class="text-center">收样日期：</th>
                            <td contenteditable="true" v-text="recived_date"></td>
                            <th class="text-center">检验日期：</th>
                            <td colspan="2" contenteditable="true" v-text="test_date"></td>
                        </tr>
                        <tr>
                            <th class="text-center">样品性状：</th>
                            <td contenteditable="true">液态</td>
                            <th class="text-center">检测环境：</th>
                            <td contenteditable="true">
                                温度
                                <span v-text="T">
                                </span> ℃
                            </td>
                            <td contenteditable="true">
                                湿度
                                <span v-text="H">
                                </span>% RH
                            </td>
                        </tr>
                        <tr>
                            <th class="text-center">检测仪器：</th>
                            <td contenteditable="true" v-text="selected3.instrument_model">
                            </td>
                            <th class="text-center">检验依据：</th>
                            <td contenteditable="true" colspan="2" v-text="selected3.GB">
                            </td>
                        </tr>
                        <!-- <tr>
                            <td class="text-center">检验步骤：</td>
                            <td colspan="5">
                                <ol>
                                    <div v-for="(sp,index) in selected3.step">
                                        <li v-text="sp"></li>
                                    </div>
                                </ol>
                            </td>
                        </tr> -->
                        <tr>
                            <th class="text-center" style="width: 12em">结果计算：</th>
                            <td colspan="5" v-text="selected3.calculation='直接读数'"></td>
                        </tr>
                    </table>
                    <table @click="mystorages(selected3)" class="table table-bordered table-striped table-hover" id="record3">
                        <thead>
                            <tr>
                                <th class="text-center">样品编号</th>
                                <th v-show="date_show" class="text-center">计量单位</th>
                                <th v-show="date_show" class="text-center">参考范围(mg/L)</th>
                                <th class="text-center">报告结果(mg/L)</th>
                                <th v-show="date_show" class="text-center">结果评价</th>
                                <th v-show="date_show" class="text-center">记录日期</th>
                            </tr>
                        </thead>
                        <tbody class="text-center">
                            <tr v-for="(item, index) in selected3.st" :key="index">
                                <td>
                                    <i v-text="numbering+(new Date()).getFullYear()"></i>水第
                                    <span v-text="f_n(item.id, 3)">
                                    </span>号</td>
                                <td v-show="date_show" v-text="item.unit"></td>
                                <td v-show="date_show" v-text="item.range"></td>
                                <td v-text="item.c"></td>
                                <td v-show="date_show" v-text="item.assessment"></td>
                                <td v-show="date_show" v-text="item.date"></td>
                            </tr>
                        </tbody>
                    </table>
                    <br>
                    <br>
                    <div class="row text-center">
                        <span class="col-lg-4 col-md-4 col-sm-4 col-xs-4">检验者：</span>
                        <span class="col-lg-4 col-md-4 col-sm-4 col-xs-4">审核者：</span>
                        <span class="col-lg-4 col-md-4 col-sm-4 col-xs-4">日期：</span>
                    </div>
                </div>
                <hr>

                <ul class="breadcrumb">
                    <li title="跳过质控，对检验结果会没有自信，长此以往，将会开始怀疑人生，怀疑一切。">
                        <a class="btn btn-default" @click="select_method3()">跳过质控记录</a>
                    </li>
                    <li title="用于x-s质控图绘制，适用于自配质控样品或未定值质控样">
                        <a class="btn btn-default" @click="select_method1(selected3)">x-s质控图</a>
                    </li>
                    <li title="适用于市售的定值标准质控物质，操作简单">
                        <a class="btn btn-default" @click="select_method2(selected3)">标准物值质控</a>
                    </li>
                </ul>

                <div class="row" v-if="QC">
                    <div class="col-lg-6">
                        <fieldset>
                            <legend>
                                <span v-text="selected3.name"></span>质控品信息
                            </legend>
                            <div class="input-group">
                                <span class="input-group-addon">编号</span>
                                <input class="form-control" type="text" v-model="selected3.store_i.q_info.q_num">
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon">批号</span>
                                <input class="form-control" type="text" v-model="selected3.store_i.q_info.q_date">
                                <span class="input-group-addon">有效期</span>
                                <input class="form-control" type="text" v-model="selected3.store_i.q_info.valid_date=2">
                                <span class="input-group-addon">年</span>
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon">定值</span>
                                <input class="form-control" type="number" v-model="selected3.store_i.q_info.q_val">
                                <span class="input-group-addon">&plusmn;</span>
                                <input class="form-control" type="number" v-model="selected3.store_i.q_info.q_limit">
                                <span class="input-group-addon">mg/L</span>
                            </div>
                        </fieldset>
                    </div>
                    <div class="col-lg-6">
                        <fieldset class="animated pulse">
                            <legend>
                                <span v-text="selected3.name"></span>质控计算
                            </legend>
                            <table class="table table-hover table-bordered table-striped">
                                <tr>
                                    <th class="text-center">编号</th>
                                    <th class="text-center">加样体积(ml)</th>
                                    <th class="text-center">结果</th>
                                    <th class="text-center">操作</th>
                                </tr>
                                <tr class="text-center">
                                    <td v-text="selected3.store_i.q_info.q_num"></td>
                                    <td>
                                        <select class="form-control" v-model="selected3.result.v">
                                            <option v-bind:value="opt" v-for="opt of vol_select" v-text="opt"></option>
                                        </select>
                                    </td>
                                    <td>
                                        <input class="form-control animated fadeIn" @keyup.enter="qc_work(selected3)" placeholder="回车确认" v-model="selected3.store_i.a">
                                    </td>
                                    <td class="btn btn-warning" @click="qc_work(selected3)">
                                        确认
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </div>
                </div>
                <div v-else-if="QC_xs">
                    <fieldset class="animated pulse">
                        <legend>
                            <span v-text="selected3.name"></span>x-s质控图数据录入
                        </legend>
                        <table class="table table-hover table-bordered table-striped">
                            <tr>
                                <th class="text-center">编号</th>
                                <th class="text-center">序号</th>
                                <th class="text-center">加样体积(ml)</th>
                                <th class="text-center">结果</th>
                                <th class="text-center">操作</th>
                            </tr>
                            <tr class="text-center">
                                <td>
                                    <input type="text" class="form-control" v-model="selected3.store_i.q_info.q_num">
                                </td>
                                <td>
                                    <input type="text" class="form-control" v-model="selected3.store_i.id">
                                </td>
                                <td>
                                    <select class="form-control" v-model="selected3.result.v">
                                        <option v-bind:value="opt" v-for="opt of vol_select" v-text="opt"></option>
                                    </select>
                                </td>
                                <td>
                                    <input class="form-control animated fadeIn" @keyup.enter="qc_xs_work(selected3)" placeholder="回车确认" v-model="selected3.store_i.a">
                                </td>
                                <td class="btn btn-warning" @click="qc_xs_work(selected3)">
                                    确认
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </div>
                <div v-else>
                    <fieldset class="animated pulse">
                        <legend>
                            样品中
                            <span v-text="selected3.name"></span>浓度计算
                        </legend>
                        <table class="table table-hover table-bordered table-striped">
                            <tr>
                                <th class="text-center">样品编号</th>
                                <th class="text-center">结果</th>
                                <th class="text-center">操作</th>
                            </tr>
                            <tr class="text-center">
                                <td>
                                    <i class="input-group">
                                        <span class="input-group-addon" v-text="numbering+(new Date()).getFullYear()"></span><span
                                            class="input-group-addon">水第</span>
                                        <input type="number" class="form-control" v-model="selected3.start">
                                        <span class="input-group-addon">号</span>
                                    </i>
                                </td>
                                <td>
                                    <input class="form-control animated fadeIn" v-if="selected3.name=='酸碱度' || selected3.name=='色度' || selected3.name=='浑浊度'"
                                        type="number" tabindex="0" v-model.number="selected3.result.c" placeholder="回车确认"
                                        @keyup.enter="work(selected3)" />
                                    <input class="form-control animated fadeIn" v-else type="text" tabindex="0"
                                        placeholder="回车确认" v-model="selected3.result.c">
                                </td>
                                <td class="btn btn-warning" @click="work(selected3)">
                                    确认
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </div>
                <table class="table table-bordered table-striped" v-if="qc_input">
                    <legend>
                        <a v-if="QC_xs" onclick="QC_chart(app.selected3,'line4')" class="btn btn-default">制作<span v-text="selected3.name"></span>x-s质控图</a>
                    </legend>
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>编号</th>
                            <th v-if="QC">定值</th>
                            <th v-if="QC">不确定度</th>
                            <th>结果</th>
                            <th v-if="QC">判断</th>
                            <th>日期</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody v-if="QC">
                        <tr v-for="(item, index) in selected3.QC_store" :key="index" v-if="item.q_info.q_num==selected3.store_i.q_info.q_num">
                            <td v-text="item.id"></td>
                            <td v-text="item.q_info.q_num"></td>
                            <td v-text="item.q_info.q_val"></td>
                            <td v-text="item.q_info.q_limit"></td>
                            <td v-text="item.result"></td>
                            <!-- <td v-text="item.q_judge" v-if="item.q_judge=='在控'" class="text-success"></td>
                            <td v-text="item.q_judge" v-else class="text-danger"></td> -->
                            <td v-text="item.q_judge" :class="(item.q_judge=='在控')?'text-success':'text-danger'"></td>
                            <td v-text="item.date"></td>
                            <td @click="del_qc(selected3,index)" class="btn">
                                <i class="fa fa-brush">删除</i>
                                </th>
                        </tr>
                    </tbody>
                    <tbody v-else>
                        <tr v-for="(item, index) in selected3.QC_xs_store" :key="index" v-if="item.q_info.q_num==selected3.store_i.q_info.q_num">
                            <td v-text="item.id"></td>
                            <td v-text="item.q_info.q_num"></td>
                            <td v-text="item.result"></td>
                            <td v-text="item.date"></td>
                            <td @click="del_qc(selected3,index)" class="btn">
                                <i class="fa fa-brush">删除</i>
                                </th>
                        </tr>
                    </tbody>
                </table>
                <div v-show="show3 && toggleTag">
                    <div data-highcharts-chart="4" id="line4" style="box-shadow:5px 5px 4px"></div>
                </div>
            </form>

        </div>
    </div>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <script src="js/index.js"></script>
    <!-- <script src="js/qc.js"></script> -->
    <footer class="footer">
        <div>交流请加QQ群
            <a href="img/myWeixin.jpg">
                <i class="fa fa-comments"></i>
                水质检测系统
            </a>
        </div>
    </footer>
    <link rel="stylesheet" href="css/css/index.css">
    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?c598ffc59b74ab58bcfce0b76860946f";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
        let userAgent = navigator.userAgent.toLocaleLowerCase();
        if (userAgent.match(/msie/) != null || userAgent.match(/trident/) != null) {
            $(".ie-tips").show();
            $(".root").hide();
        }
        $(function () {
            $("form[name='contractForm'] input:text").keypress(function (e) {
                if (e.which == 13) { // 判断所按是否回车键  
                    var inputs = $("form[name='contractForm']").find(":text"); // 获取表单中的所有输入框  
                    var idx = inputs.index(this); // 获取当前焦点输入框所处的位置  
                    if (idx == inputs.length - 1) { // 判断是否是最后一个输入框  
                        if (confirm("最后一个输入框已经输入,是否提交?")) // 用户确认  
                            $(".save_yes").click();
                        // $("form[name='contractForm']").submit(); // 提交表单  
                    } else {
                        inputs[idx + 1].focus(); // 设置焦点  
                        inputs[idx + 1].select(); // 选中文字  
                    }
                    return true; // 取消默认的提交行为  
                }
            })
        })
    </script>
</body>

</html>
